﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsAdd.ascx.cs" Inherits="Admin_News_NewsAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls"
TagPrefix="FTB" %>
<script language="javascript" type="text/javascript">
// <![CDATA[

    function iptImage_onclick() {

    }

// ]]>
</script>


<div>
     <uc1:Alert ID="MessAlert1" runat="server" />
</div>

<table>
    <tr>
        <td style ="width:650px ">
        
        <div>
    <b><asp:Label ID="lblLanguage" Width ="100px"  CssClass="text" runat ="server"     ></asp:Label></b>
    <asp:DropDownList ID="ddlLanguage" runat="server"  CssClass="boxlongest" AutoPostBack="true"  OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
    </asp:DropDownList></div>
<div>
   <asp:Label ID="lblTitle" runat="server"  Width ="100px"  CssClass="text" ></asp:Label>
   <asp:TextBox ID="txtTitle" runat="server" CssClass="boxlongest"   MaxLength="150" ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
</div>
<div>
    <asp:Label ID="lblCategory"  Width ="100px"  runat="server" CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlCategory"  runat="server" CssClass="boxlongest">
    </asp:DropDownList>
</div>
<div>
<asp:Label ID="lblSource" runat="server"  Width ="100px"  CssClass="text" ></asp:Label>
   <asp:TextBox ID="txtSource" runat="server"  CssClass="boxlongest"  
        MaxLength="150" Height="22px"></asp:TextBox>
   </div>
 <div>
    <asp:Label ID="lblImage"  Width ="100px"  runat="server" CssClass="text" ></asp:Label>
    <input id ="iptImage" runat="server" type="file" size="30"  class="boxlongest"  onclick="return iptImage_onclick()" /><br />
</div>
        </td>
        <td style ="padding-left:50px ">
        <div style ="float:right; font-style:italic; color:Red; padding-right:20px     ">Các trường đánh dấu * bắt buộc phải có thông tin</div>
        <div><asp:Image runat="server" ID="imgImage"   Height = "105px" BorderWidth="1px" BorderColor="gray"   /></div>
        </td>
    </tr>
</table>


<div style="padding:10px 0px 0px 0px ">
    <b><asp:Label ID="lblInitContent" runat="server"  Width ="100px"  CssClass="text"></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div style="padding:0px">
 <asp:TextBox ID="txtInitContent" runat="server" CssClass="textbox_multiline"    MaxLength="1999"  TextMode ="MultiLine" ValidationGroup="Input"></asp:TextBox>
</div>
<div style="padding:10px 0px 0px 0px ">
      <b><asp:Label ID="lblContent" Width ="55px" runat="server" CssClass="text"  ></asp:Label><span style="color: #ff3333">*</span></b>
</div>
<div>

 <uc2:TextBox id="FTBContent" runat="server" ></uc2:TextBox>
</div>



<div style="padding:5px 0px 5px 0px ">
    <asp:CheckBox ID="chkDisplayOrder" runat="server" CssClass="text"   />&nbsp;&nbsp;&nbsp;&nbsp;
    <span style="width: 50px " ><asp:DropDownList ID="ddlPriority" runat="server" CssClass="boxsmall"     >
    </asp:DropDownList></span>
   
     <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true"  />
</div>
<div style="padding: 20px 20px 0px 0px ">
    <asp:Button ID ="btnSave" runat="server" Width ="100px"   ValidationGroup="Input" OnClick="btnSave_Click1" /> &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server"  Width ="100px"    OnClick="btnCancel_Click"  />   
    </div>


<asp:RequiredFieldValidator ID="rfvTitle" runat="server" SetFocusOnError="true"   ControlToValidate="txtTitle" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvInitContent" runat="server" SetFocusOnError="true"   ControlToValidate="txtInitContent" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>


<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="Input" ShowSummary="False" />